﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LoginForm.ascx.cs" Inherits="C1Function" %>
<div id="loginForm">
    <div class="loginPanel">
        <h2>
        Sign in</h2>
    <asp:Login ID="ctlLogin" runat="server" OnAuthenticate="ctlLogin_OnAuthenticate"
        OnLoggedIn="ctlLogin_OnLoggedIn">
        <LayoutTemplate>
            <div>
                <asp:CustomValidator ID="vldCusAuthentication" runat="server" OnServerValidate="vldCusAuthentication_ServerValidate"
                    Display="Dynamic" CssClass="errormessage" ErrorMessage="Authentication failed. Please try again."
                    SetFocusOnError="true" ValidationGroup="ctl00$login">        
                </asp:CustomValidator>
            </div>
            <div class="control-group">
                <asp:Literal ID="litUserName" runat="server" Text="Username"></asp:Literal>:<br />
                <asp:TextBox ID="UserName" runat="server" MaxLength="255" EnableViewState="false"></asp:TextBox>
                <asp:RequiredFieldValidator ID="vldReqUsername" runat="server" ControlToValidate="UserName"
                    Display="Dynamic" CssClass="errormessage" ErrorMessage="Username is required."
                    SetFocusOnError="true" ValidationGroup="ctl00$login">*</asp:RequiredFieldValidator>
            </div>
            <div class="control-group">
                <asp:Literal ID="litPassword" runat="server" Text="Password"></asp:Literal>:<br />
                <asp:TextBox ID="Password" runat="server" TextMode="Password" MaxLength="255" EnableViewState="false"></asp:TextBox>
                <asp:RequiredFieldValidator ID="vldReqPassword" runat="server" ControlToValidate="Password"
                    Display="Dynamic" CssClass="errormessage" ErrorMessage="Password is required."
                    SetFocusOnError="true" ValidationGroup="ctl00$login">*</asp:RequiredFieldValidator>
            </div>
            <div style="padding: 10px 0 10px 0;">
                <asp:Button ID="btnLogin" runat="server" CssClass="btn btn-primary" CommandName="Login"
                    Text="Sign in" ValidationGroup="ctl00$login" />
            </div>
            <div>
            </div>
        </LayoutTemplate>
    </asp:Login>
    </div> 
</div>
